﻿using Wallpaper.Data.Base;
using Wallpaper.Models.DTOs.Responses.Tag;
using Wallpaper.Models.Entities;

namespace Wallpaper.Data.IDal
{
    public interface ITagDal : IBaseDal<Tags>
    {
        /// <summary>
        /// 检查是否存在标签
        /// </summary>
        /// <param name="tagName"></param>
        /// <returns></returns>
        Task<bool> ExistsByNameAsync(string tagName);

        /// <summary>
        /// 检查是否被使用
        /// </summary>
        /// <param name="tagId"></param>
        /// <returns></returns>
        Task<bool> IsTagUsedAsync(string tagId); // 检查是否被使用


        Task<List<TagResponse>> GetListAsync();
    }
}
